<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="机器编号" prop="maccode">
        <el-input
          v-model="queryParams.maccode"
          placeholder="请输入机器编号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="品种编号" prop="pdfcode">
        <el-input
          v-model="queryParams.pdfcode"
          placeholder="请输入品种编号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="织轴卡号" prop="shaftcode">
        <el-input
          v-model="queryParams.shaftcode"
          placeholder="请输入织轴卡号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单编号" prop="ordercode">
        <el-input
          v-model="queryParams.ordercode"
          placeholder="请输入订单编号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="班次日期" prop="shiftdate">
        <el-date-picker clearable size="small"
                        v-model="queryParams.shiftdate"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="选择班次日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="班次类型" prop="shifttype">
        <el-select v-model="queryParams.shifttype" placeholder="请选择班次类型" clearable size="small">
          <el-option
            v-for="dict in shifttypeOptions"
            :key="dict.dictValue"
            :label="dict.dictLabel"
            :value="dict.dictValue"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="上机时间" prop="sjtime">
        <el-date-picker clearable size="small"
                        v-model="queryParams.sjtime"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="选择上机时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="了机时间" prop="ljtime">
        <el-date-picker clearable size="small"
                        v-model="queryParams.ljtime"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="选择了机时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="轴状态" prop="beamstatus">
        <el-select v-model="queryParams.beamstatus" placeholder="请选择轴状态" clearable size="small">
          <el-option
            v-for="dict in beamstatusOptions"
            :key="dict.dictValue"
            :label="dict.dictLabel"
            :value="dict.dictValue"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="操作员" prop="opworker">
        <el-select v-model="queryParams.opworker" placeholder="请选择操作员" clearable size="small">
          <el-option
            v-for="dict in opworkerOptions"
            :key="dict.dictValue"
            :label="dict.dictLabel"
            :value="dict.dictValue"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="当前总长" prop="curlength">
        <el-input
          v-model="queryParams.curlength"
          placeholder="请输入当前总长"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="当前轴长" prop="beamlength">
        <el-input
          v-model="queryParams.beamlength"
          placeholder="请输入当前轴长"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="设定总长" prop="setlength">
        <el-input
          v-model="queryParams.setlength"
          placeholder="请输入设定总长"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="回潮率" prop="regain">
        <el-input
          v-model="queryParams.regain"
          placeholder="请输入回潮率"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烘房温度1" prop="temp1">
        <el-input
          v-model="queryParams.temp1"
          placeholder="请输入烘房温度1"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烘房温度2" prop="temp2">
        <el-input
          v-model="queryParams.temp2"
          placeholder="请输入烘房温度2"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烘房温度3" prop="temp3">
        <el-input
          v-model="queryParams.temp3"
          placeholder="请输入烘房温度3"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烘房温度4" prop="temp4">
        <el-input
          v-model="queryParams.temp4"
          placeholder="请输入烘房温度4"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烘房温度5" prop="temp5">
        <el-input
          v-model="queryParams.temp5"
          placeholder="请输入烘房温度5"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="浆槽A温度" prop="tempa">
        <el-input
          v-model="queryParams.tempa"
          placeholder="请输入浆槽A温度"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="浆槽B温度" prop="tempb">
        <el-input
          v-model="queryParams.tempb"
          placeholder="请输入浆槽B温度"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="浆槽A压力" prop="pressurea">
        <el-input
          v-model="queryParams.pressurea"
          placeholder="请输入浆槽A压力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="浆槽B压力" prop="pressureb">
        <el-input
          v-model="queryParams.pressureb"
          placeholder="请输入浆槽B压力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="托纱辊压力" prop="pressuretuosha">
        <el-input
          v-model="queryParams.pressuretuosha"
          placeholder="请输入托纱辊压力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="ZA1张力" prop="tensionza1">
        <el-input
          v-model="queryParams.tensionza1"
          placeholder="请输入ZA1张力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="ZB1张力" prop="tensionzb1">
        <el-input
          v-model="queryParams.tensionzb1"
          placeholder="请输入ZB1张力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="Z4张力" prop="tensionz4">
        <el-input
          v-model="queryParams.tensionz4"
          placeholder="请输入Z4张力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="Z5张力" prop="tensionz5">
        <el-input
          v-model="queryParams.tensionz5"
          placeholder="请输入Z5张力"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="浆槽A液位" prop="yeweia">
        <el-input
          v-model="queryParams.yeweia"
          placeholder="请输入浆槽A液位"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="浆槽B液位" prop="yeweib">
        <el-input
          v-model="queryParams.yeweib"
          placeholder="请输入浆槽B液位"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="蜡槽1温度" prop="tempwax1">
        <el-input
          v-model="queryParams.tempwax1"
          placeholder="请输入蜡槽1温度"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="蜡槽2温度" prop="tempwax2">
        <el-input
          v-model="queryParams.tempwax2"
          placeholder="请输入蜡槽2温度"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="伸长Z2A" prop="stretchz2a">
        <el-input
          v-model="queryParams.stretchz2a"
          placeholder="请输入伸长Z2A"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="伸长Z3A" prop="stretchz3a">
        <el-input
          v-model="queryParams.stretchz3a"
          placeholder="请输入伸长Z3A"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="伸长Z2B" prop="stretchz2b">
        <el-input
          v-model="queryParams.stretchz2b"
          placeholder="请输入伸长Z2B"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['mesana:size:add']"
        >上轴
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['mesana:size:edit']"
        >修改
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['mesana:size:remove']"
        >删除
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          :loading="exportLoading"
          @click="handleExport"
          v-hasPermi="['mesana:size:export']"
        >导出
        </el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="sizeList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center"/>
      <el-table-column label="唯一索引" align="center" prop="id"/>
      <el-table-column label="机器编号" align="center" prop="maccode"/>
      <el-table-column label="品种编号" align="center" prop="pdfcode"/>
      <el-table-column label="织轴卡号" align="center" prop="shaftcode"/>
      <el-table-column label="订单编号" align="center" prop="ordercode"/>
      <el-table-column label="班次日期" align="center" prop="shiftdate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.shiftdate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="班次类型" align="center" prop="shifttype">
        <template slot-scope="scope">
          <dict-tag :options="shifttypeOptions" :value="scope.row.shifttype"/>
        </template>
      </el-table-column>
      <el-table-column label="上机时间" align="center" prop="sjtime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.sjtime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="了机时间" align="center" prop="ljtime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ljtime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="轴状态" align="center" prop="beamstatus">
        <template slot-scope="scope">
          <dict-tag :options="beamstatusOptions" :value="scope.row.beamstatus"/>
        </template>
      </el-table-column>
      <el-table-column label="操作员" align="center" prop="opworker">
        <template slot-scope="scope">
          <dict-tag :options="opworkerOptions" :value="scope.row.opworker"/>
        </template>
      </el-table-column>
      <el-table-column label="操作员" align="center" prop="station"/>
      <el-table-column label="当前总长" align="center" prop="curlength"/>
      <el-table-column label="当前轴长" align="center" prop="beamlength"/>
      <el-table-column label="设定总长" align="center" prop="setlength"/>
      <el-table-column label="回潮率" align="center" prop="regain"/>
      <el-table-column label="烘房温度1" align="center" prop="temp1"/>
      <el-table-column label="烘房温度2" align="center" prop="temp2"/>
      <el-table-column label="烘房温度3" align="center" prop="temp3"/>
      <el-table-column label="烘房温度4" align="center" prop="temp4"/>
      <el-table-column label="烘房温度5" align="center" prop="temp5"/>
      <el-table-column label="浆槽A温度" align="center" prop="tempa"/>
      <el-table-column label="浆槽B温度" align="center" prop="tempb"/>
      <el-table-column label="浆槽A压力" align="center" prop="pressurea"/>
      <el-table-column label="浆槽B压力" align="center" prop="pressureb"/>
      <el-table-column label="托纱辊压力" align="center" prop="pressuretuosha"/>
      <el-table-column label="ZA1张力" align="center" prop="tensionza1"/>
      <el-table-column label="ZB1张力" align="center" prop="tensionzb1"/>
      <el-table-column label="Z4张力" align="center" prop="tensionz4"/>
      <el-table-column label="Z5张力" align="center" prop="tensionz5"/>
      <el-table-column label="浆槽A液位" align="center" prop="yeweia"/>
      <el-table-column label="浆槽B液位" align="center" prop="yeweib"/>
      <el-table-column label="蜡槽1温度" align="center" prop="tempwax1"/>
      <el-table-column label="蜡槽2温度" align="center" prop="tempwax2"/>
      <el-table-column label="伸长Z2A" align="center" prop="stretchz2a"/>
      <el-table-column label="伸长Z3A" align="center" prop="stretchz3a"/>
      <el-table-column label="伸长Z2B" align="center" prop="stretchz2b"/>
      <el-table-column label="伸长Z3B" align="center" prop="stretchz3b"/>
      <el-table-column label="总伸长" align="center" prop="stretchtotal"/>

      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['mesana:size:edit']"
          >修改
          </el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['mesana:size:remove']"
          >删除
          </el-button>
        </template>
      </el-table-column>
      <el-table-column label="备注" align="center" prop="remark"/>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改浆纱数据汇总对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="机器编号" prop="maccode">
          <el-input v-model="form.maccode" placeholder="请输入机器编号"/>
        </el-form-item>
        <el-form-item label="品种编号" prop="pdfcode">
          <el-input v-model="form.pdfcode" placeholder="请输入品种编号"/>
        </el-form-item>
        <el-form-item label="轴号" prop="shaftcode">
          <el-input v-model="form.shaftcode" placeholder="请输入织轴卡号"/>
        </el-form-item>
        <el-form-item label="订单编号" prop="ordercode">
          <el-input v-model="form.ordercode" placeholder="请输入订单编号"/>
        </el-form-item>
        <el-form-item label="班次日期" prop="shiftdate">
          <el-date-picker clearable size="small"
                          v-model="form.shiftdate"
                          type="date"
                          value-format="yyyy-MM-dd"
                          placeholder="选择班次日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="班次类型" prop="shifttype">
          <el-select v-model="form.shifttype" placeholder="请选择班次类型">
            <el-option
              v-for="dict in shifttypeOptions"
              :key="dict.dictValue"
              :label="dict.dictLabel"
              :value="parseInt(dict.dictValue)"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="上机时间" prop="sjtime">
          <el-date-picker clearable size="small"
                          v-model="form.sjtime"
                          type="date"
                          value-format="yyyy-MM-dd"
                          placeholder="选择上机时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="了机时间" prop="ljtime">
          <el-date-picker clearable size="small"
                          v-model="form.ljtime"
                          type="date"
                          value-format="yyyy-MM-dd"
                          placeholder="选择了机时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="操作员" prop="opworker">
          <el-select v-model="form.opworker" placeholder="请选择操作员">
            <el-option
              v-for="dict in opworkerOptions"
              :key="dict.dictValue"
              :label="dict.dictLabel"
              :value="dict.dictValue"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input v-model="form.remark" placeholder="请输入备注"/>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
    import {listSize, getSize, delSize, addSize, updateSize, exportSize} from "@/api/mesana/size";

    export default {
        name: "Size",
        data() {
            return {
                // 遮罩层
                loading: true,
                // 导出遮罩层
                exportLoading: false,
                // 选中数组
                ids: [],
                // 非单个禁用
                single: true,
                // 非多个禁用
                multiple: true,
                // 显示搜索条件
                showSearch: true,
                // 总条数
                total: 0,
                // 浆纱数据汇总表格数据
                sizeList: [],
                // 弹出层标题
                title: "",
                // 是否显示弹出层
                open: false,
                // 班次类型字典
                shifttypeOptions: [],
                // 是否跨班次字典
                iscrossshiftOptions: [],
                // 轴状态字典
                beamstatusOptions: [],
                // 操作员字典
                opworkerOptions: [],
                // 查询参数
                queryParams: {
                    pageNum: 1,
                    pageSize: 10,
                    maccode: null,
                    pdfcode: null,
                    shaftcode: null,
                    ordercode: null,
                    shiftdate: null,
                    shifttype: null,
                    sjtime: null,
                    ljtime: null,
                    beamstatus: null,
                    opworker: null,
                    curlength: null,
                    beamlength: null,
                    setlength: null,
                    regain: null,
                    temp1: null,
                    temp2: null,
                    temp3: null,
                    temp4: null,
                    temp5: null,
                    tempa: null,
                    tempb: null,
                    pressurea: null,
                    pressureb: null,
                    pressuretuosha: null,
                    tensionza1: null,
                    tensionzb1: null,
                    tensionz4: null,
                    tensionz5: null,
                    yeweia: null,
                    yeweib: null,
                    tempwax1: null,
                    tempwax2: null,
                    stretchz2a: null,
                    stretchz3a: null,
                    stretchz2b: null,
                },
                // 表单参数
                form: {},
                // 表单校验
                rules: {
                    maccode: [
                        {required: true, message: "机器编号不能为空", trigger: "blur"}
                    ],
                    pdfcode: [
                        {required: true, message: "品种编号不能为空", trigger: "blur"}
                    ],
                    shaftcode: [
                        {required: true, message: "织轴卡号不能为空", trigger: "blur"}
                    ],
                    ordercode: [
                        {required: true, message: "订单编号不能为空", trigger: "blur"}
                    ],
                    opworker: [
                        {required: true, message: "操作员不能为空", trigger: "change"}
                    ],
                    station: [
                        {required: true, message: "操作员不能为空", trigger: "blur"}
                    ],
                }
            };
        },
        created() {
            this.getList();
            this.getDicts("dict_shiftType").then(response => {
                this.shifttypeOptions = response.data;
            });
            this.getDicts("dict_isCrossShift").then(response => {
                this.iscrossshiftOptions = response.data;
            });
            this.getDicts("dict_beamstatus").then(response => {
                this.beamstatusOptions = response.data;
            });
            this.getDicts("dict_sizeworkers").then(response => {
                this.opworkerOptions = response.data;
            });
        },
        methods: {
            /** 查询浆纱数据汇总列表 */
            getList() {
                this.loading = true;
                listSize(this.queryParams).then(response => {
                    this.sizeList = response.rows;
                    this.total = response.total;
                    this.loading = false;
                });
            },
            // 取消按钮
            cancel() {
                this.open = false;
                this.reset();
            },
            // 表单重置
            reset() {
                this.form = {
                    id: null,
                    maccode: null,
                    pdfcode: null,
                    shaftcode: null,
                    ordercode: null,
                    shiftdate: null,
                    shifttype: null,
                    iscrossshift: 0,
                    sjtime: null,
                    ljtime: null,
                    beamstatus: 0,
                    opworker: null,
                    station: null,
                    curlength: null,
                    beamlength: null,
                    setlength: null,
                    regain: null,
                    temp1: null,
                    temp2: null,
                    temp3: null,
                    temp4: null,
                    temp5: null,
                    tempa: null,
                    tempb: null,
                    pressurea: null,
                    pressureb: null,
                    pressuretuosha: null,
                    tensionza1: null,
                    tensionzb1: null,
                    tensionz4: null,
                    tensionz5: null,
                    yeweia: null,
                    yeweib: null,
                    tempwax1: null,
                    tempwax2: null,
                    stretchz2a: null,
                    stretchz3a: null,
                    stretchz2b: null,
                    stretchz3b: null,
                    stretchtotal: null,
                    remark: null
                };
                this.resetForm("form");
            },
            /** 搜索按钮操作 */
            handleQuery() {
                this.queryParams.pageNum = 1;
                this.getList();
            },
            /** 重置按钮操作 */
            resetQuery() {
                this.resetForm("queryForm");
                this.handleQuery();
            },
            // 多选框选中数据
            handleSelectionChange(selection) {
                this.ids = selection.map(item => item.id)
                this.single = selection.length !== 1
                this.multiple = !selection.length
            },
            /** 新增按钮操作 */
            handleAdd() {
                this.reset();
                this.open = true;
                this.title = "添加浆纱上轴记录";
            },
            /** 修改按钮操作 */
            handleUpdate(row) {
                this.reset();
                const id = row.id || this.ids
                getSize(id).then(response => {
                    this.form = response.data;
                    this.open = true;
                    this.title = "修改浆纱上轴记录";
                });
            },
            /** 提交按钮 */
            submitForm() {
                this.$refs["form"].validate(valid => {
                    if (valid) {
                        if (this.form.id != null) {
                            updateSize(this.form).then(response => {
                                this.msgSuccess("修改成功");
                                this.open = false;
                                this.getList();
                            });
                        } else {
                            addSize(this.form).then(response => {
                                this.msgSuccess("新增成功");
                                this.open = false;
                                this.getList();
                            });
                        }
                    }
                });
            },
            /** 删除按钮操作 */
            handleDelete(row) {
                const ids = row.id || this.ids;
                this.$confirm('是否确认删除浆纱数据汇总编号为"' + ids + '"的数据项?', "警告", {
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning"
                }).then(function () {
                    return delSize(ids);
                }).then(() => {
                    this.getList();
                    this.msgSuccess("删除成功");
                }).catch(() => {
                });
            },
            /** 导出按钮操作 */
            handleExport() {
                const queryParams = this.queryParams;
                this.$confirm('是否确认导出所有浆纱数据汇总数据项?', "警告", {
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning"
                }).then(() => {
                    this.exportLoading = true;
                    return exportSize(queryParams);
                }).then(response => {
                    this.download(response.msg);
                    this.exportLoading = false;
                }).catch(() => {
                });
            }
        }
    };
</script>
